package com.up.upzl.biz.service;

import java.util.Date;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.Repository;

import com.up.upzl.base.service.BaseService;
import com.up.upzl.biz.domain.PaiDianRecord;
import com.up.upzl.biz.domain.PaiDianRecord.HuanXian;
import com.up.upzl.biz.domain.PaiDianRecord.JiangjinStatus;

/**
 * 拍店管理
 * 
 * @author geeks
 *
 */
public interface PaiDianRecordService extends BaseService<PaiDianRecord, Long>, Repository<PaiDianRecord, Long> {

	Page<PaiDianRecord> findByCondition(Integer areaId, Integer businessAreaId, HuanXian huanXian, String phone,
			String wechatId, Date createDateBegin, Date createDateEnd, PaiDianRecord.Status status, Pageable page,
			String huanxian1);

	Page<PaiDianRecord> findByCondition(Integer area, Integer businessArea, HuanXian huanXian, String phone,
			String wechatId, Date dateBegin, Date dateEnd, JiangjinStatus status, Pageable page);

	Long countByJiangjinStatus(JiangjinStatus status);

	List<PaiDianRecord> findByPhone(String phone);

}
